//这个模块主要获取的是试题管理的数据的模块
import request from '@/utils/request'
// /question/paper
/**
 *   1	建立
 *   2	编辑
 *   3	完工
 *   4	提交审核
 *   5	审核不通过
 *   6	可发布考试
 * @param status
 * @return
 */

// 查询所有审核或未审核或审核不通过的试卷
// getAllNoPassedPaper
// String status
export const getAllNoPassedPaper = (status)=>request({
    url:'question/paper/getAllNoPassedPaper',
    method:'get',
    params:{status}
});

// 审核某一张试卷
// passPaper
// String paperId, boolean isOK
export const passPaper = (paperId,isOK)=>request({
    url:'question/paper/passPaper',
    method:'post',
    params:{paperId,isOK}
});

// 查询一张试卷
// getPaperInventory
// String paperId
export const getPaperInventory = (paperId)=>request({
    url:'question/paper/getPaperInventory',
    method:'post',
    params:{paperId}
});

//获取题型分类数据接口
export const reqGetTypeList = ()=>request({
    url:'/question/attribute/getTypeMap',
    method:'get',
});